package com.syni;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableJpaRepositories(basePackages="com.syni.mdd.yhd.common.all.dao.jpa",repositoryImplementationPostfix="CustomImpl")
@EntityScan(basePackages="com.syni.mdd.yhd.common.all.entity")
@EnableTransactionManagement
@EnableJpaAuditing
@EnableDiscoveryClient
@EnableFeignClients
@EnableCircuitBreaker
public class MddYhdAllApplication {
    public static void main(String[] args) {
        SpringApplication.run(MddYhdAllApplication.class, args);
    }
}
